﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Net.Class;
using Net.Properties;
namespace Net
{
    public partial class FormBooks : Form
    {
        public FormBooks()
        {
            InitializeComponent();
        }

        private void FormBooks_Load(object sender, EventArgs e)
        {
            comboBox1.Text = "读者条码";
            textBox1_username.Text = "112008321001878";
            textBox2_password.Text = "1234567890";
        }

        private void button1_login_Click(object sender, EventArgs e)
        {
            string postUrl = "http://202.202.121.3/gdweb/ReaderTable.aspx"; 
            string postData = "DropDownList1=读者条码&TextBox1=" +textBox1_username.Text.Trim()+ "&TextBox2=" + textBox2_password.Text.Trim() ;
            string returnContent = GetPage.getPage(postUrl, postData);
            richTextBox1.Text = returnContent;
        }

      
    }
}
